package mesweb.mesweb.dto.ProduceLine;

/**
 * @Description: TODO
 * @Author niufw
 * @Date 2021/11/27 22:23
 * @Version 1.0
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author niufw
 * @since 2021-05-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProduceLineDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //产线id
    private Long produceLineId;
    //产线编号
    private String produceLineNo;

    //产线名称
    private String produceLineName;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String comment;

    /**
     * 审核时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private Date audittime;

    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    private String audituser;
    /**
     * 创建时间
     */

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下发时间")
    private Date createtime;

    @ApiModelProperty(value = "下发人")
    private String createuser;

    @ApiModelProperty(value = "是否已删除")
    private Boolean isdeleted;

    private Long productId;

    private String productNo;

    private Long orderId;

    private String orderNo;

    private String version;

    //工厂
    private String factoryName;

    private Long factoryId;

    private Float modTime;

    private String watchTime;

    private String calcuteTimeMethod;

    private Integer relationId;

    @ApiModelProperty(value = "生产或产品工序线Id")
    private Long sourceLineId;

    @ApiModelProperty(value = "生产或产品工序线编号")
    private String sourceLineNo;

    @ApiModelProperty(value = "生产或产品工序线名称")
    private String sourceLineName;

    @ApiModelProperty(value = "工序来源类型")
    private Integer sourceLineType;

}

